#ifndef __JY61P_H
#define __JY61P_H
#include "main.h"                  // Device header

#define JY61P_FRAME_HEADER   0x55
#define JY61P_ACC_ID         0x51
#define JY61P_GYRO_ID        0x52
#define JY61P_ANGLE_ID       0x53
#define JY61P_FRAME_LEN      9

extern uint8_t angle[10];
extern uint8_t gyro[10];
extern uint8_t acc[10];
extern float pitch,roll,yaw;
extern float gyrox,gyroy,gyroz;
extern float accx,accy,accz;
void JY61P_Init(void);
void angle_update(void);
void gyro_update(void);
void acc_update(void);
uint8_t JY_push(uint8_t temp);


#endif

